/**
 * 
 */
package com.worksmap.core.entity;

import com.worksmap.core.constant.RateConstant;

/**
 * @author jack
 *
 */
public class SellerConfig {
	
	private Integer id;
	/**
	 * 卖家淘宝id
	 */
	private String taobao_user_id;
	
	private String taobao_user_nick;
	/**
	 * 自动评价开关状态
	 * 1 开启；0 关闭
	 */
	private int auto_rate_switch = 0;
	/**
	 * 是否过滤黑名单
	 * 1 过滤；0 不过滤
	 */
	private int black_list_switch = 0;
	/**
	 * 订单情况
	 * 用户设置评价条件：
	 * 1.买家已评价 
	 * 2.所有交易成功 
	 */
	private String trade_rate_condition = RateConstant.BUYER_RATE_ALREADY;
	/**
	 * 当trade_rate_condition为3时，该值代表：补充评价交易成功14天后，买家未评价的订单 
	 */
	private Integer rate_condition_day = 14;
	/**
	 * 抢评功能
	 * 默认1开启，0关闭
	 */
	private int grab_switch = 1;

	/**
	 * 
	 */
	public SellerConfig() {
		super();
	}

	/**
	 * @param taobao_user_id
	 */
	public SellerConfig(String taobao_user_id) {
		super();
		this.taobao_user_id = taobao_user_id;
	}

	@Override
	public String toString() {
		return "SellerConfig [id=" + id + ", taobao_user_id=" + taobao_user_id
				+ ", taobao_user_nick=" + taobao_user_nick
				+ ", auto_rate_switch=" + auto_rate_switch
				+ ", black_list_switch=" + black_list_switch
				+ ", trade_rate_condition=" + trade_rate_condition
				+ ", rate_condition_day=" + rate_condition_day
				+ ", grab_switch=" + grab_switch + "]";
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the taobao_user_id
	 */
	public String getTaobao_user_id() {
		return taobao_user_id;
	}

	/**
	 * @param taobao_user_id the taobao_user_id to set
	 */
	public void setTaobao_user_id(String taobao_user_id) {
		this.taobao_user_id = taobao_user_id;
	}

	/**
	 * @return the taobao_user_nick
	 */
	public String getTaobao_user_nick() {
		return taobao_user_nick;
	}

	/**
	 * @param taobao_user_nick the taobao_user_nick to set
	 */
	public void setTaobao_user_nick(String taobao_user_nick) {
		this.taobao_user_nick = taobao_user_nick;
	}

	/**
	 * @return the trade_rate_condition
	 */
	public String getTrade_rate_condition() {
		return trade_rate_condition;
	}

	/**
	 * @param trade_rate_condition the trade_rate_condition to set
	 */
	public void setTrade_rate_condition(String trade_rate_condition) {
		this.trade_rate_condition = trade_rate_condition;
	}

	/**
	 * @return the rate_condition_day
	 */
	public Integer getRate_condition_day() {
		return rate_condition_day;
	}

	/**
	 * @param rate_condition_day the rate_condition_day to set
	 */
	public void setRate_condition_day(Integer rate_condition_day) {
		this.rate_condition_day = rate_condition_day;
	}

	/**
	 * @return the auto_rate_switch
	 */
	public int getAuto_rate_switch() {
		return auto_rate_switch;
	}

	/**
	 * @param auto_rate_switch the auto_rate_switch to set
	 */
	public void setAuto_rate_switch(int auto_rate_switch) {
		this.auto_rate_switch = auto_rate_switch;
	}

	/**
	 * @return the black_list_switch
	 */
	public int getBlack_list_switch() {
		return black_list_switch;
	}

	/**
	 * @param black_list_switch the black_list_switch to set
	 */
	public void setBlack_list_switch(int black_list_switch) {
		this.black_list_switch = black_list_switch;
	}

	/**
	 * @return the grab_switch
	 */
	public int getGrab_switch() {
		return grab_switch;
	}

	/**
	 * @param grab_switch the grab_switch to set
	 */
	public void setGrab_switch(int grab_switch) {
		this.grab_switch = grab_switch;
	}
	
}
